<form id="add-form" class="form-horizontal row" role="form" data-toggle="validator" method="POST" action="">

    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="border-bottom: 2px solid #cccccc">
        <h3 style="margin-left: 20px;">合同相关信息</h3>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('合同名称')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-contract" class="form-control" data-rule="required" name="row[contract]" type="text" value="">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('签订日期')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-sign_time" class="form-control datetimepicker"  data-rule="required"  name="row[sign_time]" type="text" value="" autocomplete="off" data-date-use-current="false" data-date-format="YYYY-MM-DD">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('生效日期')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-effect_time" class="form-control datetimepicker"  data-rule="required"  name="row[effect_time]" type="text" value="" autocomplete="off" data-date-use-current="false" data-date-format="YYYY-MM-DD">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('终止日期')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-end_time" class="form-control datetimepicker"  data-rule="required"  name="row[end_time]" type="text" value="" autocomplete="off" data-date-use-current="false" data-date-format="YYYY-MM-DD">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label for="c-img" class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('合同附件')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <div class="input-group">
                        <input id="c-img"  data-rule="required" class="form-control" size="50" name="row[url]" type="text" value="">
                        <div class="input-group-addon no-border no-padding">
                            <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload" data-input-id="c-img"  data-multiple="true" data-preview-id="p-img"><i class="fa fa-upload"></i> 上传</button></span>
                            <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-img" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
                        </div>
                        <span class="msg-box n-right" for="c-img"></span>
                    </div>
                    <ul class="row list-inline plupload-preview" id="p-img"></ul>
                </div>
            </div>

            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('合同内容')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <textarea name="row[content]" data-rule="required" rows="7" cols="67"></textarea>
                </div>
            </div>
        </div>
    </div>



    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="border-bottom: 2px solid #cccccc">
        <h3 style="margin-left: 20px;">客户信息</h3>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('客户名称')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-client" class="form-control" data-rule="required" name="row[client]" type="text" value="">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('客户地址')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-site" class="form-control" data-rule="required" name="row[site]" type="text" value="">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('联系人/负责人')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-contacts" class="form-control" data-rule="required" name="row[contacts]" type="text" value="">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('电话')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-phone" class="form-control" data-rule="required" name="row[phone]" type="text" value="">
                </div>
            </div>
        </div>
    </div>

    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="border-bottom: 2px solid #cccccc">
        <h3 style="margin-left: 20px;">合同产品信息</h3>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('产品/项目名称')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-project_name" class="form-control" data-rule="required" name="row[project_name]" type="text" value="">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('数量')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-count" class="form-control" data-rule="required" name="row[count]" type="text" value="">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('合同金额')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-money" class="form-control" data-rule="required" name="row[money]" type="text" value="">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('产品规格')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-specification" class="form-control" data-rule="required" name="row[specification]" type="text" value="">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('单价')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-price" class="form-control" data-rule="required" name="row[price]" type="text" value="">
                </div>
            </div>
        </div>
    </div>

    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="border-bottom: 2px solid #cccccc">
        <h3 style="margin-left: 20px;">款项费用支付信息</h3>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('支付方式')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-pay" class="form-control" data-rule="required" name="row[pay]" type="text" value="">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('期数')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-periods" class="form-control" data-rule="required" name="row[periods]" type="text" value="">
                </div>
            </div>
        </div>
    </div>

    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
        <h3 style="margin-left: 20px;">其它</h3>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('备注')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-msg" class="form-control" data-rule="required" name="row[msg]" type="text" value="">
                </div>
            </div>
        </div>
        <div class="col-xs-6">

        </div>
    </div>




    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>